﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopTaohuaCateStat")]
    public class TaohuaCateStat : BaseObject
    {
        //begin
        public TaohuaCateStat()
        {}
        public TaohuaCateStat(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _CateId;
        public string CateId
        {
            get
            {
                return _CateId;
            }
            set
            {
                SetPropertyValue("CateId", ref _CateId, value);
            }
        }
        private string _Name;
        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                SetPropertyValue("Name", ref _Name, value);
            }
        }
        private long _Count;
        public long Count
        {
            get
            {
                return _Count;
            }
            set
            {
                SetPropertyValue("Count", ref _Count, value);
            }
        }
        private TaohuaSearchItems _TaohuaSearchItems;
        [Association("TaohuaSearchItemsCateStats", typeof(TaohuaSearchItems))]
        public TaohuaSearchItems TaohuaSearchItems
        {
            get
            {
                return _TaohuaSearchItems;
            }
            set
            {
                SetPropertyValue("TaohuaSearchItems", ref _TaohuaSearchItems, value);
            }
        }
        //end

    }
}
